//
//  footerCell.m
//  jiMuOperate
//
//  Created by 翁仪 on 16/5/6.
//  Copyright © 2016年 jinXinFengLi. All rights reserved.
//

#import "footerCell.h"
#import "JMOperate.pch"
@implementation footerCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createView];
        self.contentView.backgroundColor =RGB(239, 239, 244);
        //        [self setingDate];
    }
    return self;
}
-(void)createView{  
    
    UILabel *label1 = [ARC createLabelWithFrame:CGRectMake(10, 0, SCREEN_WIDTH, 20) Font:10 Text:@"温馨提示:"];
    label1.textColor = RGB(150, 150, 150);
    label1.textAlignment = NSTextAlignmentLeft;
    UILabel *label2 = [ARC createLabelWithFrame:CGRectMake(10, 20, SCREEN_WIDTH, 20) Font:10 Text:@"1、预备策略员所提交的策略不会被公开和执行。"];
    label2.textColor = RGB(150, 150, 150);
    label2.textAlignment = NSTextAlignmentLeft;
    UILabel *label3 = [ARC createLabelWithFrame:CGRectMake(10, 40, SCREEN_WIDTH, 20) Font:10 Text:@"2，银行卡的开户人必须与实名认证一致。"];
    label3.textColor = RGB(150, 151, 152);
    label3.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:label1];
    [self.contentView addSubview:label2];
    [self.contentView addSubview:label3];
    
    CGFloat btnY = 80;
    CGFloat btnH = 40;
    
    UIButton *okbut = [ARC createButtonWithFrame:CGRectMake(30,btnY, 260, btnH)
                                Target:self
                                   Sel:@selector(okBtnClick:)
                                 Title:@"提交策略"];
     _submitStrategyBut = okbut;
    [okbut setBackgroundImage:[UIImage imageNamed:@"logoin_btn"] forState:UIControlStateNormal];
    okbut.frame = [ToolViewAndData MyAutoLayout:okbut];
    [okbut.titleLabel setFont:[UIFont boldSystemFontOfSize:20]];
    okbut.tintColor=[UIColor whiteColor];
    [self.contentView addSubview:okbut];
    
}
-(void)okBtnClick:(UIButton*)btn

{
    NSLog(@"提交策略");
}
@end
